package com.example.wm;

import lombok.extern.slf4j.Slf4j;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableScheduling;

@Slf4j
@SpringBootApplication
@EnableConfigurationProperties

// @MapperScan(basePackages = {"com.example.wm.mapper"})
// @EnableSwagger2
@EnableScheduling
public class WmApplication {

    public static void main(String[] args) {
        SpringApplication.run(WmApplication.class, args);
        log.info("项目启动成功");
    }

//    @Bean(name = "primaryDataSource")
//    @ConfigurationProperties(prefix = "spring.datasource.primary")
//    public DataSource primaryDataSource() {
//        return DataSourceBuilder.create().build();
//    }
}
